const Service = require('egg').Service;

class VisitLogService extends Service {
  /**
   * @description 计算总访问数
   * @author xiezuobing[948466]<435321508@qq.com>
   * @returns  
   * @memberof VisitLogService
   */
  async count() {
    return await this.ctx.model.VisitLog.count();
  }
  
  /**
   * @description 创建
   * @author xiezuobing[948466]<435321508@qq.com>
   * @param {any} values 
   * @returns  
   * @memberof VisitLogService
   */
  async create(values){
    return await this.ctx.model.VisitLog.create(values);
  }
}

module.exports = VisitLogService;